# 类名：登录页面 ‐‐> LoginPage
# 属性：用户名、密码、验证码 ‐‐> username password code
# 方法：点击 ‐‐> click_button()

class LoginPage(object):
    def __init__(self, username, password, code):
        self.username = username
        self.password = password
        self.code = code

    def click_button(self):
        if self.username == 'lu' and self.password == '12345' and self.code == '8888':
            print("登录成功")
        else:
            print("登录失败")


# user = LoginPage("lu", "12345", "8888")
# user.click_button()
# 使用input获取用户输入
username = input("请输入用户名：")
password = input("请输入密码：")
code = input("请输入验证码：")

# 创建登录页面对象并执行登录
user = LoginPage(username, password, code)
user.click_button()

# 打印对象信息（可根据需要保留或删除）
# print(user)
